import { get } from "@/utils/request";
export function getIcmpLog(index) {
  return get("/getIcmpLog", index);
}

export function getUdpLog(index) {
  return get("/getUdpLog", index);
}

export function getArpLog(index) {
  return get("/getArpLog", index);
}

export function submitMode(mode) {
  return get("/submit", mode);
}

const NetworkApi = {
  ICMP: getIcmpLog,
  UDP: getUdpLog,
  ARP: getArpLog,
  Submit: submitMode,
};

export default NetworkApi;
